import Layout from '@/layout'

const xxlJobRouter = {
	path: '/xxl-job',
	component: Layout,
	redirect: '/xxl-job',
	name: '任务调度',
	meta: {
		title: '任务调度',
		icon: 'table'
	},
	children: [{
			path: '/xxl-job/report',
			component: () => import('@/views/xxl-job/report.vue'),
			name: '运行报表',
			meta: {
				title: '运行报表',
				auth: "xxljob:report"
			}
		},{
			path: '/xxl-job/jobinfo',
			component: () => import('@/views/xxl-job/jobinfo.vue'),
			name: '任务管理',
			meta: {
				title: '任务管理',
				auth: "xxljob:jobinfo"
			}
		},{
			path: '/xxl-job/joblog',
			component: () => import('@/views/xxl-job/joblog.vue'),
			name: '执行日志',
			meta: {
				title: '执行日志',
				auth: "xxljob:joblog"
			}
		},{
			path: '/xxl-job/jobgroup',
			component: () => import('@/views/xxl-job/jobgroup.vue'),
			name: '执行器管理',
			meta: {
				title: '执行器管理',
				auth: "xxljob:jobgroup"
			}
		},{
			path: '/xxl-job/user',
			component: () => import('@/views/xxl-job/user.vue'),
			name: '执行权限管理',
			meta: {
				title: '执行权限管理',
				auth: "xxljob:user"
			}
		}]
}
export default xxlJobRouter
